/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package air.eb;

/**
 *
 * @author JonasF
 */
public class Seatinstance {
    private int nr;
    private String sRow;
    private String flight;
    private boolean empty;
    private String arrDate;
    private String depDate;

    public Seatinstance() {
    }

    public Seatinstance(int nr, String sRow, String flight, boolean empty, String arrDate, String depDate) {
        this.nr = nr;
        this.sRow = sRow;
        this.flight = flight;
        this.empty = empty;
        this.arrDate = arrDate;
        this.depDate = depDate;
    }

    public String getArrDate() {
        return arrDate;
    }

    public String getDepDate() {
        return depDate;
    }

    public boolean isEmpty() {
        return empty;
    }

    public String getFlight() {
        return flight;
    }

    public int getNr() {
        return nr;
    }

    public String getSRow() {
        return sRow;
    }

    public void setArrDate(String arrDate) {
        this.arrDate = arrDate;
    }

    public void setDepDate(String depDate) {
        this.depDate = depDate;
    }

    public void setEmpty(boolean empty) {
        this.empty = empty;
    }

    public void setFlight(String flight) {
        this.flight = flight;
    }

    public void setNr(int nr) {
        this.nr = nr;
    }

    public void setSRow(String sRow) {
        this.sRow = sRow;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Seatinstance other = (Seatinstance) obj;
        if (this.nr != other.nr) {
            return false;
        }
        if ((this.sRow == null) ? (other.sRow != null) : !this.sRow.equals(other.sRow)) {
            return false;
        }
        if ((this.flight == null) ? (other.flight != null) : !this.flight.equals(other.flight)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + this.nr;
        hash = 71 * hash + (this.sRow != null ? this.sRow.hashCode() : 0);
        hash = 71 * hash + (this.flight != null ? this.flight.hashCode() : 0);
        return hash;
    }
    
}
